using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QuanLyKhachSan.DTO;

namespace QuanLyKhachSan.DAO
{
    public class ChiTietPhieuThueDAO
    {
        public static bool Insert(ChiTietPhieuThueDTO chiTietThuedto)
        {
            int kq = 0;
            DataAccessHelper con = new SqlDataAccessHelper();
            string sql = "INSERT INTO ChiTietPhieuThue (maPhieuThue,maKhachHang) VALUES (" + chiTietThuedto.MaPhieuThue + "," + chiTietThuedto.MaKhachHang + ")";
            kq = con.ExecuteNonQuery1(sql);
            if (kq > 0)
            {
                return true;
            }
            return false;
        }
        public static DataTable LayAllChiTiet(int maPhieuThue)
        {
            DataTable dt = new DataTable();
            return dt;
        }
    }
}
